import { RouteObject, createBrowserRouter, redirect } from 'react-router-dom'
import HomePage from '@/pages/home'
import MyPage from '@/pages/my'

const routers = [
  // {
  //   path: '/',
  //   redirect: '/home'
  // },
  {
    path: '/',
    element: <HomePage />
  },
  {
    path: '/my',
    element: <MyPage />
  }
]

const router = createBrowserRouter(routers)
export { router }
